package com.zlll.winner.business.service.mall;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zlll.winner.business.model.mall.MallSelectGoods;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zlll.winner.business.vo.mall.MallGoodsDetailsVo;
import com.zlll.winner.business.vo.mall.MallSelectGoodsVo;

import java.util.List;


/**
 * <p>
 * 精选商品 服务类
 * </p>
 *
 * @author qsx
 * @since 2019-10-08
 */
public interface IMallSelectGoodsService extends IService<MallSelectGoods> {
    /**
     * 获取精选商品列表
     *
     * @param pageSize
     * @param pageNo
     * @return
     */
    IPage<MallGoodsDetailsVo> getSelectGoodsPage(String goodsName, String goodsNo, Integer pageSize, Integer pageNo);
    IPage<MallSelectGoodsVo> getPage(String goodsName, Integer pageSize, Integer pageNo);

    MallSelectGoods add(MallSelectGoods mallSelectGoods);

    MallSelectGoodsVo getMallSelectGoodsVoById(Long id);

    List<MallSelectGoods> isRepeat(Long goodsId);

    MallSelectGoods edit(MallSelectGoods mallSelectGoods);

}
